﻿namespace HRM.CORE.REPORT
{
    using DevExpress.Utils;
    using DevExpress.XtraPrinting;
    using DevExpress.XtraReports.UI;
    using Dictionary.ERP;
    using HRM.CORE;
    using HRM.CORE.CLASS;
    using System; using Extra.ERP;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Drawing.Printing;

    public class rptSalaryOverTime : XtraReport
    {
        private BottomMarginBand BottomMargin;
        private IContainer components;
        private DetailBand Detail;
        private GroupFooterBand GroupFooter1;
        private GroupHeaderBand GroupHeader1;
        private HRM_SALARY l_Salary;
        private string m_Code;
        private int m_Level;
        private int m_Month;
        private int m_Order;
        private int m_Year;
        private ReportFooterBand ReportFooter;
        private ReportHeaderBand ReportHeader;
        private TopMarginBand TopMargin;
        private XRTableCell txtEmployeeCode;
        private XRTableCell txtFirstName;
        private XRTableCell txtLastName;
        private XRTableCell txtOrder;
        private XRTableCell txtOvertime150;
        private XRTableCell txtOvertime195;
        private XRTableCell txtOvertime200;
        private XRTableCell txtOvertime260;
        private XRTableCell txtOvertime300;
        private XRTableCell txtOvertime390;
        private XRTableCell txtOvertimeTotal1;
        private XRTableCell txtOvertimeTotal300;
        private XRTableCell txtSalary;
        private XRTableCell txtSalaryHour;
        private XRTableCell txtSalaryOverTime;
        private XRLabel txtTitle;
        private XRTableCell txtTotalOvertime150;
        private XRTableCell txtTotalOvertime195;
        private XRTableCell txtTotalOvertime200;
        private XRTableCell txtTotalOvertime260;
        private XRTableCell txtTotalOvertime390;
        private XRTableCell txtTotalOvertimeTotal1;
        private XRTableCell txtTotalSalary;
        private XRTableCell txtTotalSalaryHour;
        private XRTableCell txtTotalSalaryOverTime;
        private XRLabel txtUnit;
        private XRLabel xrLabel3;
        private XRTable xrTable1;
        private XRTable xrTable2;
        private XRTable xrTable4;
        private XRTableCell xrTableCell1;
        private XRTableCell xrTableCell13;
        private XRTableCell xrTableCell14;
        private XRTableCell xrTableCell15;
        private XRTableCell xrTableCell17;
        private XRTableCell xrTableCell18;
        private XRTableCell xrTableCell19;
        private XRTableCell xrTableCell2;
        private XRTableCell xrTableCell20;
        private XRTableCell xrTableCell21;
        private XRTableCell xrTableCell22;
        private XRTableCell xrTableCell24;
        private XRTableCell xrTableCell3;
        private XRTableCell xrTableCell4;
        private XRTableCell xrTableCell6;
        private XRTableRow xrTableRow1;
        private XRTableRow xrTableRow2;
        private XRTableRow xrTableRow5;

        public rptSalaryOverTime()
        {
            this.l_Salary = new HRM_SALARY();
            this.m_Level = 0;
            this.m_Code = "";
            this.m_Month = 0;
            this.m_Year = 0;
            this.m_Order = 0;
            this.components = null;
            this.InitializeComponent();
        }

        public rptSalaryOverTime(int Level, string Code, int Month, int Year)
        {
            this.l_Salary = new HRM_SALARY();
            this.m_Level = 0;
            this.m_Code = "";
            this.m_Month = 0;
            this.m_Year = 0;
            this.m_Order = 0;
            this.components = null;
            this.InitializeComponent();
            this.m_Level = Level;
            this.m_Code = Code;
            this.m_Month = Month;
            this.m_Year = Year;
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            this.Detail = new DetailBand();
            this.xrTable2 = new XRTable();
            this.xrTableRow2 = new XRTableRow();
            this.txtOrder = new XRTableCell();
            this.txtEmployeeCode = new XRTableCell();
            this.txtFirstName = new XRTableCell();
            this.txtLastName = new XRTableCell();
            this.txtSalary = new XRTableCell();
            this.txtSalaryHour = new XRTableCell();
            this.txtOvertime150 = new XRTableCell();
            this.txtOvertime200 = new XRTableCell();
            this.txtOvertime300 = new XRTableCell();
            this.txtOvertime195 = new XRTableCell();
            this.txtOvertime260 = new XRTableCell();
            this.txtOvertime390 = new XRTableCell();
            this.txtOvertimeTotal1 = new XRTableCell();
            this.txtSalaryOverTime = new XRTableCell();
            this.TopMargin = new TopMarginBand();
            this.BottomMargin = new BottomMarginBand();
            this.ReportHeader = new ReportHeaderBand();
            this.txtTitle = new XRLabel();
            this.txtUnit = new XRLabel();
            this.GroupHeader1 = new GroupHeaderBand();
            this.xrTable1 = new XRTable();
            this.xrTableRow1 = new XRTableRow();
            this.xrTableCell1 = new XRTableCell();
            this.xrTableCell14 = new XRTableCell();
            this.xrTableCell13 = new XRTableCell();
            this.xrTableCell2 = new XRTableCell();
            this.xrTableCell4 = new XRTableCell();
            this.xrTableCell18 = new XRTableCell();
            this.xrTableCell15 = new XRTableCell();
            this.xrTableCell21 = new XRTableCell();
            this.xrTableCell24 = new XRTableCell();
            this.xrTableCell19 = new XRTableCell();
            this.xrTableCell6 = new XRTableCell();
            this.xrTableCell20 = new XRTableCell();
            this.xrTableCell22 = new XRTableCell();
            this.xrTableCell17 = new XRTableCell();
            this.ReportFooter = new ReportFooterBand();
            this.GroupFooter1 = new GroupFooterBand();
            this.xrTable4 = new XRTable();
            this.xrTableRow5 = new XRTableRow();
            this.xrTableCell3 = new XRTableCell();
            this.txtTotalSalary = new XRTableCell();
            this.txtTotalSalaryHour = new XRTableCell();
            this.txtTotalOvertime150 = new XRTableCell();
            this.txtTotalOvertime200 = new XRTableCell();
            this.txtOvertimeTotal300 = new XRTableCell();
            this.txtTotalOvertime195 = new XRTableCell();
            this.txtTotalOvertime260 = new XRTableCell();
            this.txtTotalOvertime390 = new XRTableCell();
            this.txtTotalOvertimeTotal1 = new XRTableCell();
            this.txtTotalSalaryOverTime = new XRTableCell();
            this.xrLabel3 = new XRLabel();
            this.xrTable2.BeginInit();
            this.xrTable1.BeginInit();
            this.xrTable4.BeginInit();
            this.BeginInit();
            this.Detail.Controls.AddRange(new XRControl[] { this.xrTable2 });
            this.Detail.HeightF = 29.16667f;
            this.Detail.Name = "Detail";
            this.Detail.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.Detail.TextAlignment = TextAlignment.TopLeft;
            this.xrTable2.Borders = BorderSide.Bottom | BorderSide.Right | BorderSide.Left;
            this.xrTable2.Font = new Font("Times New Roman", 8.25f);
            this.xrTable2.LocationFloat = new PointFloat(0f, 0f);
            this.xrTable2.Name = "xrTable2";
            this.xrTable2.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.xrTable2.Rows.AddRange(new XRTableRow[] { this.xrTableRow2 });
            this.xrTable2.SizeF = new SizeF(779f, 29.16667f);
            this.xrTable2.StylePriority.UseBorders = false;
            this.xrTable2.StylePriority.UseFont = false;
            this.xrTable2.StylePriority.UsePadding = false;
            this.xrTable2.StylePriority.UseTextAlignment = false;
            this.xrTable2.TextAlignment = TextAlignment.MiddleLeft;
            this.xrTableRow2.Cells.AddRange(new XRTableCell[] { this.txtOrder, this.txtEmployeeCode, this.txtFirstName, this.txtLastName, this.txtSalary, this.txtSalaryHour, this.txtOvertime150, this.txtOvertime200, this.txtOvertime300, this.txtOvertime195, this.txtOvertime260, this.txtOvertime390, this.txtOvertimeTotal1, this.txtSalaryOverTime });
            this.xrTableRow2.Name = "xrTableRow2";
            this.xrTableRow2.Weight = 1.0;
            this.txtOrder.Name = "txtOrder";
            this.txtOrder.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.txtOrder.StylePriority.UsePadding = false;
            this.txtOrder.StylePriority.UseTextAlignment = false;
            this.txtOrder.Text = "txtOrder";
            this.txtOrder.TextAlignment = TextAlignment.MiddleLeft;
            this.txtOrder.Weight = 0.18749981602642024;
            this.txtOrder.BeforePrint += new PrintEventHandler(this.txtOrder_BeforePrint);
            this.txtEmployeeCode.Name = "txtEmployeeCode";
            this.txtEmployeeCode.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.txtEmployeeCode.StylePriority.UsePadding = false;
            this.txtEmployeeCode.StylePriority.UseTextAlignment = false;
            this.txtEmployeeCode.Text = "txtEmployeeCode";
            this.txtEmployeeCode.TextAlignment = TextAlignment.MiddleLeft;
            this.txtEmployeeCode.Weight = 0.45424041967575879;
            this.txtFirstName.Name = "txtFirstName";
            this.txtFirstName.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.txtFirstName.StylePriority.UsePadding = false;
            this.txtFirstName.StylePriority.UseTextAlignment = false;
            this.txtFirstName.Text = "txtFirstName";
            this.txtFirstName.TextAlignment = TextAlignment.MiddleLeft;
            this.txtFirstName.Weight = 0.72556593832419947;
            this.txtLastName.Name = "txtLastName";
            this.txtLastName.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.txtLastName.StylePriority.UsePadding = false;
            this.txtLastName.StylePriority.UseTextAlignment = false;
            this.txtLastName.Text = "txtLastName";
            this.txtLastName.TextAlignment = TextAlignment.MiddleLeft;
            this.txtLastName.Weight = 0.35728566061351719;
            this.txtSalary.Name = "txtSalary";
            this.txtSalary.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtSalary.StylePriority.UsePadding = false;
            this.txtSalary.StylePriority.UseTextAlignment = false;
            this.txtSalary.Text = "txtSalary";
            this.txtSalary.TextAlignment = TextAlignment.MiddleRight;
            this.txtSalary.Weight = 0.46347663817738094;
            this.txtSalaryHour.Name = "txtSalaryHour";
            this.txtSalaryHour.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtSalaryHour.StylePriority.UsePadding = false;
            this.txtSalaryHour.StylePriority.UseTextAlignment = false;
            this.txtSalaryHour.Text = "txtSalaryHour";
            this.txtSalaryHour.TextAlignment = TextAlignment.MiddleRight;
            this.txtSalaryHour.Weight = 0.37117445789945652;
            this.txtOvertime150.Name = "txtOvertime150";
            this.txtOvertime150.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtOvertime150.StylePriority.UsePadding = false;
            this.txtOvertime150.StylePriority.UseTextAlignment = false;
            this.txtOvertime150.Text = "txtOvertime150";
            this.txtOvertime150.TextAlignment = TextAlignment.MiddleRight;
            this.txtOvertime150.Weight = 0.387939993689776;
            this.txtOvertime200.Name = "txtOvertime200";
            this.txtOvertime200.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtOvertime200.StylePriority.UsePadding = false;
            this.txtOvertime200.StylePriority.UseTextAlignment = false;
            this.txtOvertime200.Text = "txtOvertime200";
            this.txtOvertime200.TextAlignment = TextAlignment.MiddleRight;
            this.txtOvertime200.Weight = 0.37345360302212893;
            this.txtOvertime300.Name = "txtOvertime300";
            this.txtOvertime300.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtOvertime300.StylePriority.UsePadding = false;
            this.txtOvertime300.StylePriority.UseTextAlignment = false;
            this.txtOvertime300.Text = "txtOvertime300";
            this.txtOvertime300.TextAlignment = TextAlignment.MiddleRight;
            this.txtOvertime300.Weight = 0.35566947301631763;
            this.txtOvertime195.Name = "txtOvertime195";
            this.txtOvertime195.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtOvertime195.StylePriority.UsePadding = false;
            this.txtOvertime195.StylePriority.UseTextAlignment = false;
            this.txtOvertime195.Text = "txtOvertime195";
            this.txtOvertime195.TextAlignment = TextAlignment.MiddleRight;
            this.txtOvertime195.Weight = 0.40322486950292491;
            this.txtOvertime260.Name = "txtOvertime260";
            this.txtOvertime260.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtOvertime260.StylePriority.UsePadding = false;
            this.txtOvertime260.StylePriority.UseTextAlignment = false;
            this.txtOvertime260.Text = "txtOvertime260";
            this.txtOvertime260.TextAlignment = TextAlignment.MiddleRight;
            this.txtOvertime260.Weight = 0.35167314763213414;
            this.txtOvertime390.Name = "txtOvertime390";
            this.txtOvertime390.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtOvertime390.StylePriority.UsePadding = false;
            this.txtOvertime390.StylePriority.UseTextAlignment = false;
            this.txtOvertime390.Text = "txtOvertime390";
            this.txtOvertime390.TextAlignment = TextAlignment.MiddleRight;
            this.txtOvertime390.Weight = 0.34463836259068409;
            this.txtOvertimeTotal1.Name = "txtOvertimeTotal1";
            this.txtOvertimeTotal1.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtOvertimeTotal1.StylePriority.UsePadding = false;
            this.txtOvertimeTotal1.StylePriority.UseTextAlignment = false;
            this.txtOvertimeTotal1.Text = "txtOvertimeTotal1";
            this.txtOvertimeTotal1.TextAlignment = TextAlignment.MiddleRight;
            this.txtOvertimeTotal1.Weight = 0.29609632037966366;
            this.txtSalaryOverTime.Name = "txtSalaryOverTime";
            this.txtSalaryOverTime.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtSalaryOverTime.StylePriority.UsePadding = false;
            this.txtSalaryOverTime.StylePriority.UseTextAlignment = false;
            this.txtSalaryOverTime.Text = "txtSalaryOverTime";
            this.txtSalaryOverTime.TextAlignment = TextAlignment.MiddleRight;
            this.txtSalaryOverTime.Weight = 0.46939495830380384;
            this.TopMargin.HeightF = 70f;
            this.TopMargin.Name = "TopMargin";
            this.TopMargin.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.TopMargin.TextAlignment = TextAlignment.TopLeft;
            this.BottomMargin.HeightF = 56f;
            this.BottomMargin.Name = "BottomMargin";
            this.BottomMargin.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.BottomMargin.TextAlignment = TextAlignment.TopLeft;
            this.ReportHeader.Controls.AddRange(new XRControl[] { this.txtTitle, this.txtUnit });
            this.ReportHeader.HeightF = 50f;
            this.ReportHeader.Name = "ReportHeader";
            this.txtTitle.Font = new Font("Times New Roman", 16f, FontStyle.Bold);
            this.txtTitle.LocationFloat = new PointFloat(4.768372E-05f, 0f);
            this.txtTitle.Name = "txtTitle";
            this.txtTitle.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtTitle.SizeF = new SizeF(778.9999f, 30.25001f);
            this.txtTitle.StylePriority.UseFont = false;
            this.txtTitle.StylePriority.UseTextAlignment = false;
            this.txtTitle.Text = "BẢNG LƯƠNG TĂNG CA TH\x00c1NG 00/0000";
            this.txtTitle.TextAlignment = TextAlignment.MiddleCenter;
            this.txtUnit.LocationFloat = new PointFloat(4.768372E-05f, 30.25001f);
            this.txtUnit.Name = "txtUnit";
            this.txtUnit.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtUnit.SizeF = new SizeF(778.9999f, 17.70834f);
            this.txtUnit.StylePriority.UseTextAlignment = false;
            this.txtUnit.TextAlignment = TextAlignment.MiddleCenter;
            this.GroupHeader1.Controls.AddRange(new XRControl[] { this.xrLabel3, this.xrTable1 });
            this.GroupHeader1.HeightF = 54.58333f;
            this.GroupHeader1.Name = "GroupHeader1";
            this.xrTable1.AnchorVertical = VerticalAnchorStyles.Bottom;
            this.xrTable1.BackColor = Color.WhiteSmoke;
            this.xrTable1.BorderColor = Color.Black;
            this.xrTable1.Borders = BorderSide.All;
            this.xrTable1.Font = new Font("Times New Roman", 8.25f, FontStyle.Bold);
            this.xrTable1.LocationFloat = new PointFloat(4.768372E-05f, 0f);
            this.xrTable1.Name = "xrTable1";
            this.xrTable1.Rows.AddRange(new XRTableRow[] { this.xrTableRow1 });
            this.xrTable1.SizeF = new SizeF(778.9999f, 54.58333f);
            this.xrTable1.StylePriority.UseBackColor = false;
            this.xrTable1.StylePriority.UseBorderColor = false;
            this.xrTable1.StylePriority.UseBorders = false;
            this.xrTable1.StylePriority.UseFont = false;
            this.xrTable1.StylePriority.UseTextAlignment = false;
            this.xrTable1.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableRow1.Cells.AddRange(new XRTableCell[] { this.xrTableCell1, this.xrTableCell14, this.xrTableCell13, this.xrTableCell2, this.xrTableCell4, this.xrTableCell18, this.xrTableCell15, this.xrTableCell21, this.xrTableCell24, this.xrTableCell19, this.xrTableCell6, this.xrTableCell20, this.xrTableCell22, this.xrTableCell17 });
            this.xrTableRow1.Name = "xrTableRow1";
            this.xrTableRow1.Weight = 1.0;
            this.xrTableCell1.CanGrow = false;
            this.xrTableCell1.Font = new Font("Times New Roman", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
            this.xrTableCell1.Name = "xrTableCell1";
            this.xrTableCell1.StylePriority.UseFont = false;
            this.xrTableCell1.StylePriority.UseTextAlignment = false;
            this.xrTableCell1.Text = "STT";
            this.xrTableCell1.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell1.Weight = 0.18749992582046493;
            this.xrTableCell14.CanGrow = false;
            this.xrTableCell14.Font = new Font("Times New Roman", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
            this.xrTableCell14.Name = "xrTableCell14";
            this.xrTableCell14.StylePriority.UseFont = false;
            this.xrTableCell14.StylePriority.UseTextAlignment = false;
            this.xrTableCell14.Text = "M\x00e3 NV";
            this.xrTableCell14.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell14.Weight = 0.46047604289597893;
            this.xrTableCell13.CanGrow = false;
            this.xrTableCell13.Font = new Font("Times New Roman", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
            this.xrTableCell13.Name = "xrTableCell13";
            this.xrTableCell13.StylePriority.UseFont = false;
            this.xrTableCell13.StylePriority.UseTextAlignment = false;
            this.xrTableCell13.Text = "Họ l\x00f3t";
            this.xrTableCell13.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell13.Weight = 0.73261678520697726;
            this.xrTableCell2.CanGrow = false;
            this.xrTableCell2.Font = new Font("Times New Roman", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
            this.xrTableCell2.Name = "xrTableCell2";
            this.xrTableCell2.StylePriority.UseFont = false;
            this.xrTableCell2.StylePriority.UseTextAlignment = false;
            this.xrTableCell2.Text = "T\x00ean";
            this.xrTableCell2.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell2.Weight = 0.36075744128663723;
            this.xrTableCell4.CanGrow = false;
            this.xrTableCell4.Font = new Font("Times New Roman", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
            this.xrTableCell4.Name = "xrTableCell4";
            this.xrTableCell4.StylePriority.UseFont = false;
            this.xrTableCell4.StylePriority.UseTextAlignment = false;
            this.xrTableCell4.Text = "Tổng lương";
            this.xrTableCell4.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell4.Weight = 0.46798019282125292;
            this.xrTableCell18.CanGrow = false;
            this.xrTableCell18.Font = new Font("Times New Roman", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
            this.xrTableCell18.Name = "xrTableCell18";
            this.xrTableCell18.StylePriority.UseFont = false;
            this.xrTableCell18.StylePriority.UseTextAlignment = false;
            this.xrTableCell18.Text = "Lương giờ";
            this.xrTableCell18.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell18.Weight = 0.37478129201820304;
            this.xrTableCell15.CanGrow = false;
            this.xrTableCell15.Font = new Font("Times New Roman", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
            this.xrTableCell15.Multiline = true;
            this.xrTableCell15.Name = "xrTableCell15";
            this.xrTableCell15.StylePriority.UseFont = false;
            this.xrTableCell15.Text = "\r\nTC. Ng\x00e0y thường (h)";
            this.xrTableCell15.Weight = 0.39170958087268554;
            this.xrTableCell21.CanGrow = false;
            this.xrTableCell21.Font = new Font("Times New Roman", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
            this.xrTableCell21.Multiline = true;
            this.xrTableCell21.Name = "xrTableCell21";
            this.xrTableCell21.StylePriority.UseFont = false;
            this.xrTableCell21.StylePriority.UseTextAlignment = false;
            this.xrTableCell21.Text = "\r\nTC. Chủ nhật (h)";
            this.xrTableCell21.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell21.Weight = 0.37708283139344129;
            this.xrTableCell24.CanGrow = false;
            this.xrTableCell24.Font = new Font("Times New Roman", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
            this.xrTableCell24.Multiline = true;
            this.xrTableCell24.Name = "xrTableCell24";
            this.xrTableCell24.StylePriority.UseFont = false;
            this.xrTableCell24.Text = "\r\nTC. Ng\x00e0y lể (h)";
            this.xrTableCell24.Weight = 0.35912587295906184;
            this.xrTableCell19.CanGrow = false;
            this.xrTableCell19.Font = new Font("Times New Roman", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
            this.xrTableCell19.Multiline = true;
            this.xrTableCell19.Name = "xrTableCell19";
            this.xrTableCell19.StylePriority.UseFont = false;
            this.xrTableCell19.Text = "\r\nTCĐ. Ng\x00e0y thường (h)";
            this.xrTableCell19.Weight = 0.40714318569385355;
            this.xrTableCell6.CanGrow = false;
            this.xrTableCell6.Font = new Font("Times New Roman", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
            this.xrTableCell6.Multiline = true;
            this.xrTableCell6.Name = "xrTableCell6";
            this.xrTableCell6.StylePriority.UseFont = false;
            this.xrTableCell6.Text = "\r\nTCĐ. Chủ nhật (h)";
            this.xrTableCell6.Weight = 0.35509010273847952;
            this.xrTableCell20.CanGrow = false;
            this.xrTableCell20.Font = new Font("Times New Roman", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
            this.xrTableCell20.Multiline = true;
            this.xrTableCell20.Name = "xrTableCell20";
            this.xrTableCell20.StylePriority.UseFont = false;
            this.xrTableCell20.Text = "\r\nTCĐ. Ng\x00e0y lễ (h)";
            this.xrTableCell20.Weight = 0.34798825140874245;
            this.xrTableCell22.CanGrow = false;
            this.xrTableCell22.Font = new Font("Times New Roman", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
            this.xrTableCell22.Multiline = true;
            this.xrTableCell22.Name = "xrTableCell22";
            this.xrTableCell22.StylePriority.UseFont = false;
            this.xrTableCell22.Text = "\r\nTổng (h)";
            this.xrTableCell22.Weight = 0.29897273555705911;
            this.xrTableCell17.CanGrow = false;
            this.xrTableCell17.Font = new Font("Times New Roman", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
            this.xrTableCell17.Name = "xrTableCell17";
            this.xrTableCell17.StylePriority.UseFont = false;
            this.xrTableCell17.StylePriority.UseTextAlignment = false;
            this.xrTableCell17.Text = "Tiền tăng ca";
            this.xrTableCell17.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell17.Weight = 0.47395612172928991;
            this.ReportFooter.HeightF = 43f;
            this.ReportFooter.Name = "ReportFooter";
            this.GroupFooter1.Controls.AddRange(new XRControl[] { this.xrTable4 });
            this.GroupFooter1.HeightF = 29.16667f;
            this.GroupFooter1.Name = "GroupFooter1";
            this.xrTable4.Borders = BorderSide.Bottom | BorderSide.Right | BorderSide.Left;
            this.xrTable4.Font = new Font("Times New Roman", 8.25f);
            this.xrTable4.LocationFloat = new PointFloat(0f, 0f);
            this.xrTable4.Name = "xrTable4";
            this.xrTable4.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.xrTable4.Rows.AddRange(new XRTableRow[] { this.xrTableRow5 });
            this.xrTable4.SizeF = new SizeF(779f, 29.16667f);
            this.xrTable4.StylePriority.UseBorders = false;
            this.xrTable4.StylePriority.UseFont = false;
            this.xrTable4.StylePriority.UsePadding = false;
            this.xrTable4.StylePriority.UseTextAlignment = false;
            this.xrTable4.TextAlignment = TextAlignment.MiddleLeft;
            this.xrTableRow5.BackColor = Color.WhiteSmoke;
            this.xrTableRow5.Cells.AddRange(new XRTableCell[] { this.xrTableCell3, this.txtTotalSalary, this.txtTotalSalaryHour, this.txtTotalOvertime150, this.txtTotalOvertime200, this.txtOvertimeTotal300, this.txtTotalOvertime195, this.txtTotalOvertime260, this.txtTotalOvertime390, this.txtTotalOvertimeTotal1, this.txtTotalSalaryOverTime });
            this.xrTableRow5.Font = new Font("Times New Roman", 8.25f, FontStyle.Bold);
            this.xrTableRow5.Name = "xrTableRow5";
            this.xrTableRow5.StylePriority.UseBackColor = false;
            this.xrTableRow5.StylePriority.UseFont = false;
            this.xrTableRow5.Weight = 1.0;
            this.xrTableCell3.Name = "xrTableCell3";
            this.xrTableCell3.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.xrTableCell3.StylePriority.UsePadding = false;
            this.xrTableCell3.StylePriority.UseTextAlignment = false;
            this.xrTableCell3.Text = "Tổng cộng:";
            this.xrTableCell3.TextAlignment = TextAlignment.MiddleLeft;
            this.xrTableCell3.Weight = 1.7245917794578518;
            this.txtTotalSalary.Name = "txtTotalSalary";
            this.txtTotalSalary.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtTotalSalary.StylePriority.UsePadding = false;
            this.txtTotalSalary.StylePriority.UseTextAlignment = false;
            this.txtTotalSalary.Text = "txtTotalSalary";
            this.txtTotalSalary.TextAlignment = TextAlignment.MiddleRight;
            this.txtTotalSalary.Weight = 0.46347669335942521;
            this.txtTotalSalaryHour.Name = "txtTotalSalaryHour";
            this.txtTotalSalaryHour.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtTotalSalaryHour.StylePriority.UsePadding = false;
            this.txtTotalSalaryHour.StylePriority.UseTextAlignment = false;
            this.txtTotalSalaryHour.Text = "txtTotalSalaryHour";
            this.txtTotalSalaryHour.TextAlignment = TextAlignment.MiddleRight;
            this.txtTotalSalaryHour.Weight = 0.37117443076401313;
            this.txtTotalOvertime150.Name = "txtTotalOvertime150";
            this.txtTotalOvertime150.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtTotalOvertime150.StylePriority.UsePadding = false;
            this.txtTotalOvertime150.StylePriority.UseTextAlignment = false;
            this.txtTotalOvertime150.Text = "txtTotalOvertime150";
            this.txtTotalOvertime150.TextAlignment = TextAlignment.MiddleRight;
            this.txtTotalOvertime150.Weight = 0.38794002082521939;
            this.txtTotalOvertime200.Name = "txtTotalOvertime200";
            this.txtTotalOvertime200.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtTotalOvertime200.StylePriority.UsePadding = false;
            this.txtTotalOvertime200.StylePriority.UseTextAlignment = false;
            this.txtTotalOvertime200.Text = "txtTotalOvertime200";
            this.txtTotalOvertime200.TextAlignment = TextAlignment.MiddleRight;
            this.txtTotalOvertime200.Weight = 0.373453603022129;
            this.txtOvertimeTotal300.Name = "txtOvertimeTotal300";
            this.txtOvertimeTotal300.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtOvertimeTotal300.StylePriority.UsePadding = false;
            this.txtOvertimeTotal300.StylePriority.UseTextAlignment = false;
            this.txtOvertimeTotal300.Text = "txtOvertimeTotal300";
            this.txtOvertimeTotal300.TextAlignment = TextAlignment.MiddleRight;
            this.txtOvertimeTotal300.Weight = 0.35566945944859596;
            this.txtTotalOvertime195.Name = "txtTotalOvertime195";
            this.txtTotalOvertime195.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtTotalOvertime195.StylePriority.UsePadding = false;
            this.txtTotalOvertime195.StylePriority.UseTextAlignment = false;
            this.txtTotalOvertime195.Text = "txtTotalOvertime195";
            this.txtTotalOvertime195.TextAlignment = TextAlignment.MiddleRight;
            this.txtTotalOvertime195.Weight = 0.40322531723773997;
            this.txtTotalOvertime260.Name = "txtTotalOvertime260";
            this.txtTotalOvertime260.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtTotalOvertime260.StylePriority.UsePadding = false;
            this.txtTotalOvertime260.StylePriority.UseTextAlignment = false;
            this.txtTotalOvertime260.Text = "txtTotalOvertime260";
            this.txtTotalOvertime260.TextAlignment = TextAlignment.MiddleRight;
            this.txtTotalOvertime260.Weight = 0.35167274060048409;
            this.txtTotalOvertime390.Name = "txtTotalOvertime390";
            this.txtTotalOvertime390.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtTotalOvertime390.StylePriority.UsePadding = false;
            this.txtTotalOvertime390.StylePriority.UseTextAlignment = false;
            this.txtTotalOvertime390.Text = "txtTotalOvertime390";
            this.txtTotalOvertime390.TextAlignment = TextAlignment.MiddleRight;
            this.txtTotalOvertime390.Weight = 0.34463836259068414;
            this.txtTotalOvertimeTotal1.Name = "txtTotalOvertimeTotal1";
            this.txtTotalOvertimeTotal1.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtTotalOvertimeTotal1.StylePriority.UsePadding = false;
            this.txtTotalOvertimeTotal1.StylePriority.UseTextAlignment = false;
            this.txtTotalOvertimeTotal1.Text = "txtTotalOvertimeTotal1";
            this.txtTotalOvertimeTotal1.TextAlignment = TextAlignment.MiddleRight;
            this.txtTotalOvertimeTotal1.Weight = 0.29609629324422027;
            this.txtTotalSalaryOverTime.Name = "txtTotalSalaryOverTime";
            this.txtTotalSalaryOverTime.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtTotalSalaryOverTime.StylePriority.UsePadding = false;
            this.txtTotalSalaryOverTime.StylePriority.UseTextAlignment = false;
            this.txtTotalSalaryOverTime.Text = "txtTotalSalaryOverTime";
            this.txtTotalSalaryOverTime.TextAlignment = TextAlignment.MiddleRight;
            this.txtTotalSalaryOverTime.Weight = 0.46939495830380384;
            this.xrLabel3.BackColor = Color.WhiteSmoke;
            this.xrLabel3.Borders = BorderSide.All;
            this.xrLabel3.Font = new Font("Times New Roman", 8.25f, FontStyle.Bold);
            this.xrLabel3.LocationFloat = new PointFloat(358.778f, 0f);
            this.xrLabel3.Name = "xrLabel3";
            this.xrLabel3.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel3.SizeF = new SizeF(354.2345f, 21f);
            this.xrLabel3.StylePriority.UseBackColor = false;
            this.xrLabel3.StylePriority.UseBorders = false;
            this.xrLabel3.StylePriority.UseFont = false;
            this.xrLabel3.StylePriority.UseTextAlignment = false;
            this.xrLabel3.Text = "Giờ c\x00f4ng l\x00e0m th\x00eam, việc ri\x00eang (đ\x00e3 nh\x00e2n hệ số)";
            this.xrLabel3.TextAlignment = TextAlignment.MiddleCenter;
            base.Bands.AddRange(new Band[] { this.Detail, this.TopMargin, this.BottomMargin, this.ReportHeader, this.GroupHeader1, this.ReportFooter, this.GroupFooter1 });
            base.Margins = new Margins(0x16, 0x1a, 70, 0x38);
            base.PageHeight = 0x491;
            base.PageWidth = 0x33b;
            base.PaperKind = PaperKind.A4;
            base.Version = "9.3";
            this.BeforePrint += new PrintEventHandler(this.rptListEmployee_BeforePrint);
            this.xrTable2.EndInit();
            this.xrTable1.EndInit();
            this.xrTable4.EndInit();
            this.EndInit();
        }

        private void LoadAllData()
        {
            HRM_SALARY_TABLELIST hrm_salary_tablelist = new HRM_SALARY_TABLELIST();
            hrm_salary_tablelist.Get(this.m_Month, this.m_Year);
            DataSet set = new DataSet();
            DataTable table = new DataTable();
            table = this.l_Salary.GetList(this.m_Level, this.m_Code, hrm_salary_tablelist.SalaryTableListID);
            if (this.m_Level != 0)
            {
                if (this.m_Level == 1)
                {
                    HRM_BRANCH hrm_branch = new HRM_BRANCH();
                    hrm_branch.Get(this.m_Code);
                    this.txtUnit.Text = "Đơn vị: " + hrm_branch.BranchName;
                }
                else if (this.m_Level == 2)
                {
                    HRM_DEPARTMENT hrm_department = new HRM_DEPARTMENT();
                    hrm_department.Get(this.m_Code);
                    this.txtUnit.Text = "Đơn vị: " + hrm_department.DepartmentName;
                }
                else if (this.m_Level == 3)
                {
                    HRM_GROUP hrm_group = new HRM_GROUP();
                    hrm_group.Get(this.m_Code);
                    this.txtUnit.Text = "Đơn vị: " + hrm_group.GroupName;
                }
            }
            set.Tables.Add(table);
            base.DataSource = set;
            this.txtEmployeeCode.DataBindings.Add("Text", base.DataSource, "EmployeeCode");
            this.txtFirstName.DataBindings.Add("Text", base.DataSource, "FirstName");
            this.txtLastName.DataBindings.Add("Text", base.DataSource, "LastName");
            this.txtSalary.DataBindings.Add("Text", base.DataSource, "TotalSalary", "{0:##,##0}");
            this.txtSalaryHour.DataBindings.Add("Text", base.DataSource, "SalaryHour", "{0:##,##0}");
            this.txtOvertime150.DataBindings.Add("Text", base.DataSource, "Overtime150", "{0:##,##0.#}");
            this.txtOvertime200.DataBindings.Add("Text", base.DataSource, "Overtime200", "{0:##,##0.#}");
            this.txtOvertime300.DataBindings.Add("Text", base.DataSource, "Overtime300", "{0:##,##0.#}");
            this.txtOvertime195.DataBindings.Add("Text", base.DataSource, "Overtime195", "{0:##,##0.#}");
            this.txtOvertime260.DataBindings.Add("Text", base.DataSource, "Overtime260", "{0:##,##0}");
            this.txtOvertime390.DataBindings.Add("Text", base.DataSource, "Overtime390", "{0:##,##0}");
            this.txtOvertimeTotal1.DataBindings.Add("Text", base.DataSource, "OvertimeTotal1", "{0:##,##0}");
            this.txtSalaryOverTime.DataBindings.Add("Text", base.DataSource, "SalaryOverTime", "{0:##,##0}");
            this.txtTotalSalary.DataBindings.Add("Text", base.DataSource, "TotalSalary", "{0:##,##0}");
            this.txtTotalSalaryHour.DataBindings.Add("Text", base.DataSource, "SalaryHour", "{0:##,##0}");
            this.txtTotalOvertime150.DataBindings.Add("Text", base.DataSource, "Overtime150", "{0:##,##0.#}");
            this.txtTotalOvertime200.DataBindings.Add("Text", base.DataSource, "Overtime200", "{0:##,##0.#}");
            this.txtOvertimeTotal300.DataBindings.Add("Text", base.DataSource, "Overtime300", "{0:##,##0.#}");
            this.txtTotalOvertime195.DataBindings.Add("Text", base.DataSource, "Overtime195", "{0:##,##0.#}");
            this.txtTotalOvertime260.DataBindings.Add("Text", base.DataSource, "Overtime260", "{0:##,##0}");
            this.txtTotalOvertime390.DataBindings.Add("Text", base.DataSource, "Overtime390", "{0:##,##0}");
            this.txtTotalOvertimeTotal1.DataBindings.Add("Text", base.DataSource, "OvertimeTotal1", "{0:##,##0}");
            this.txtTotalSalaryOverTime.DataBindings.Add("Text", base.DataSource, "SalaryOverTime", "{0:##,##0}");
            this.txtTotalSalary.Summary = new XRSummary(SummaryRunning.Group, SummaryFunc.Sum, "{0:##,##0}");
            this.txtTotalSalaryHour.Summary = new XRSummary(SummaryRunning.Group, SummaryFunc.Sum, "{0:##,##0}");
            this.txtTotalOvertime150.Summary = new XRSummary(SummaryRunning.Group, SummaryFunc.Sum, "{0:##,##0.#}");
            this.txtTotalOvertime200.Summary = new XRSummary(SummaryRunning.Group, SummaryFunc.Sum, "{0:##,##0.#}");
            this.txtOvertimeTotal300.Summary = new XRSummary(SummaryRunning.Group, SummaryFunc.Sum, "{0:##,##0.#}");
            this.txtTotalOvertime195.Summary = new XRSummary(SummaryRunning.Group, SummaryFunc.Sum, "{0:##,##0.#}");
            this.txtTotalOvertime260.Summary = new XRSummary(SummaryRunning.Group, SummaryFunc.Sum, "{0:##,##0}");
            this.txtTotalOvertime390.Summary = new XRSummary(SummaryRunning.Group, SummaryFunc.Sum, "{0:##,##0}");
            this.txtTotalOvertimeTotal1.Summary = new XRSummary(SummaryRunning.Group, SummaryFunc.Sum, "{0:##,##0}");
            this.txtTotalSalaryOverTime.Summary = new XRSummary(SummaryRunning.Group, SummaryFunc.Sum, "{0:##,##0}");
        }

        private void rptListEmployee_BeforePrint(object sender, PrintEventArgs e)
        {
            this.txtTitle.Text = "BẢNG LƯƠNG TĂNG CA TH\x00c1NG " + this.m_Month.ToString() + "/" + this.m_Year.ToString();
            this.LoadAllData();
            CreateHeaderReport.CreateHeader(this.ReportHeader);
            CreateFooterReport.CreateFooter("IsSalary", this.ReportFooter, this);
        }

        private void txtOrder_BeforePrint(object sender, PrintEventArgs e)
        {
            this.m_Order++;
            this.txtOrder.Text = this.m_Order.ToString();
        }
    }
}

